/**
 * @file
 * @author Ivan Babushkin (jogrms@gmail.com)
 * @date 15.06.2010
 */

#ifndef TOOLBUTTON_H
#define TOOLBUTTON_H

#include <QToolButton>
#include <qodefault.h>

class ToolButton: public QToolButton {
	Q_OBJECT

	public:

		ToolButton(QWidget *parent);
		~ToolButton();

		void applySettings(struct QOSettings *settings);
		void turnStarted();
		void turnProgress(int progress);
		void turnFinished(bool ok);

	private:

		QPalette finishedPaletteOk;
		QPalette finishedPaletteNOk;
		QPalette startedPalette;
		QPalette progressPalette;
		QString finishedTextOk;
		QString finishedTextNOk;
		QString startedText;
};

#endif // TOOLBUTTON_H
